package com.nekoneko.nekonekodemo.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.nekoneko.nekonekodemo.R;
import com.nekoneko.nekonekodemo.ui.OverScrollView;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;


/**
 * Created by 想法的猫 on 2017/11/6 0006.
 */

public class OverScrollViewFragment extends Fragment implements View.OnClickListener {
    Unbinder unbinder;
    @BindView(R.id.parent_layout)
    LinearLayout parentLayout;
    @BindView(R.id.image_header)
    ImageView imageHeader;
    @BindView(R.id.scrollView)
    OverScrollView scrollView;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_over_scroll, container, false);
        unbinder = ButterKnife.bind(this, view);
        scrollView.setTopScaleTargetView(imageHeader);
        return view;
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        unbinder.unbind();
    }

    @Override
    public void onClick(View v) {

    }
}
